<table class="table">
  <caption>基本的表格布局</caption>
  <thead>
    <h3><a href="?r=curd/add">添加</a></h3>
    <tr>
      <th>ID</th>
      <th>用户名</th>
      <th>邮箱</th>
      <th>操作</th>
    </tr>
  </thead>
  <?php foreach ($data as $key => $v):?>
  <tbody>
    <tr>
      <td><?=$v['id']?></td>
      <td><?=$v['name']?></td>
      <td><?=$v['email']?></td>
      <td><a href="?r=curd/dels&id=<?=$v['id']?>">删除</a>||
      <a href="?r=curd/up&id=<?=$v['id']?>">修改</a></td>
    </tr>
  </tbody>
<?php endforeach ?>
</table>
<?php 
use yii\widgets\LinkPager;

    echo LinkPager::widget([
    'pagination' => $pagination,
]);
 ?>